package com.ruoyi.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 物品列对象 sys_prod
 * 
 * @author yj
 * @date 2023-11-14
 */
@Data
public class SysProd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单签订时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /** 货物编码 */
    @Excel(name = "货物编码")
    private String prodCode;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String prodName;

    /** 订购数量 */
    @Excel(name = "订购数量")
    private BigDecimal quantity;

    /** 物品单位 */
    @Excel(name = "物品单位")
    private String prodUnits;

    /** 物品单价 */
    @Excel(name = "物品单价")
    private BigDecimal prodPrice;

    /** 预定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预定时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date scheduledTime;

    /** 毛重 */
//    @Excel(name = "毛重")
    private BigDecimal roughQuantity;

    /** 实到数量 */
    @Excel(name = "实到数量",type = Excel.Type.EXPORT)
    private BigDecimal actualQuantity;

    /** 去皮数量 */
    @Excel(name = "去皮数量",type = Excel.Type.EXPORT)
    private BigDecimal decorticateQuantity;

    /** 单次数量 */
    private BigDecimal weighQuantity;

    /** 收货类型 */
    @Excel(name = "收货类型",type = Excel.Type.EXPORT,dictType="sys_receipt_type")
    private Integer receiptType;

    /** 订单记录信息 */
//    @Excel(name = "订单")
    private List<SysOrder> sysOrderList;


}
